<template>
  <div>
    <ElInput v-model="model!.value" />
    <ElInput v-model="model!.label" />
    <ElButton @click="updateModel">提交</ElButton>
    {{ model }}
  </div>
</template>

<script setup lang="ts">
import { ElInput } from 'element-plus';

const model = defineModel<{
  label: string;
  value: string;
}>();

const updateModel = () => {
  model!.value = {
    label: '123',
    value: '123',
  };
};
</script>
